<ion-view view-title="共通商品检索">
	 <ion-content>
       <div class="list">
       	<li class="item item-input">
       	 	<span class="input-label">商品名称：</span>
       	 	<input type="text" placeholder="请输入商品名称" ng-model="input.name"/>
       	 </li>
       	  <li class="item item-input">
			   <span class="input-label">品牌：</span>
			   <div class="input-value small" ng-click="doSelectbrand()">{{input.brand.name}}</div>
       	 </li>
       	  <li class="item item-input">
			   品类：
			   <div class="input-value small" ng-click="doSelectCat1()">{{input.cat1.name}}</div>
			   <div class="input-value small" ng-click="doSelectCat2()">{{input.cat2.name}}</div>
			   <div class="input-value small" ng-click="doSelectCat3()">{{input.cat3.name}}</div>	
       	 </li>
       </div>

       <div class="padding">
       	 <button class="button button-block button-assertive" on-tap="do_goodsSearch()">检 索</button>
       </div>

       <div class="item item-divider">检索结果
         <span class="right-zhang">共<span class="assertive">{{input.goods_count}}</span>条记录</span>
       </div>
       <div ng-repeat="goods in goods_data.goods">
	       	<ion-checkbox class="padding-0"  on-tap="goods_checked(goods.goods_id)" ng-checked="goods.checked">
		        <div class="list list-borderless">
		       		<li class="item padding-5  assertive font-large-my">
						商品名称：{{goods.name}}
					</li>
					<li class="item padding-5 font-large-my">
						售价：{{goods.price}}元
					</li>
					<li class="item padding-5 font-large-my">
						店铺：{{goods.store_name}}
					</li>
					<li class="item padding-5 font-large-my">
						类型：{{goods.cat_type_name}}
					</li>
		        </div>
	        </ion-checkbox>
		 	<div class="padding" ng-show="$index==(input.goods_count-1)">
				<button class="button button-assertive button-block"  on-tap="closeGoods()">选择</button>
			</div>
       </div>


	 </ion-content>
</ion-view>
